
package com.yungu.swift.system.marketing.service.impl;

import com.yungu.swift.base.ResponseData;
import com.alibaba.dubbo.config.annotation.Service;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.base.service.impl.BaseServiceImpl;
import com.yungu.swift.system.marketing.model.dto.MarketingChannelLogDto;
import com.yungu.swift.system.marketing.dao.MarketingChannelLogMapper;
import com.yungu.swift.system.marketing.service.MarketingChannelLogService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author xiuyin.cui - Generate
 * @version 1.1.0-SNAPSHOT
 * @since 2018-07-02 11:19
 */
@Service
public class MarketingChannelLogServiceImpl extends BaseServiceImpl<MarketingChannelLogDto> implements MarketingChannelLogService {

    @Autowired
    private MarketingChannelLogMapper marketingChannelLogMapper;

    @Override
    protected IMapper<MarketingChannelLogDto> getMapper() {
        return marketingChannelLogMapper;
    }

    @Override
    public ResponseData<Integer> addBatch(List list) {
        return ResponseData.buildSuccessResponse(marketingChannelLogMapper.addBatch(list));
    }
}
